package com.vhans.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhans.db.model.dto.ConditionDTO;
import com.vhans.db.model.vo.image.*;
import com.vhans.core.domain.Image;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 镜像Mapper接口
 *
 * @author vhans
 * @date 2023-05-20
 */
@Repository
public interface ImageMapper extends BaseMapper<Image> {

    /**
     * 查询镜像列表
     *
     * @param condition 查询条件
     * @return 镜像集合
     */
    List<ImageVO> selectImageVOList(@Param("condition") ConditionDTO condition);

    /**
     * 通过主键查询镜像信息
     *
     * @param id 镜像ID
     * @return 结果
     */
    ImageInfoVO selectImageInfoById(Integer id);

}
